module.exports  = {
  name:"filterimgsrc",
  filter:(val)=>{
    // if(val){
    //   return val.replace('http://192.168.110.220:8080','/cjimg').replace('http://192.168.110.202:6040','/faceimg').replace('http://192.168.110.146','/imgserver')
    // }else{
    //   return val
    // }
    
    if(val.search('http://192.168.110.146/')!= -1){
      var num=Math.ceil(Math.random()*4)
      console.log('@/assets/images/che'+num+'.jpg')
      return require('@/assets/images/che'+num+'.jpg')
    }else{
       return require('@/assets/images/人脸0'+Math.ceil(Math.random()*8)+'.jpg')
    }
   
  }
}
